import { IReportParams } from '../interface/reports'
import * as request from './request'

export async function report(body: IReportParams) {
  try {
    const data = await request.post(JSON.stringify(body), '/api/web/report/add')
    return data
  } catch (e) {
    return (e)
  }
}